package com.qunar.itts.validator;

import java.util.Map;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

import com.qunar.itts.validator.annotation.Rules;

/**
 * TODO
 * @author wangxinchun1988@163.com
 * @date 2015-5-10 上午10:30:17
 */
public class QunarRulesConstraintValidator implements ConstraintValidator<Rules, Map<String,String>> {

	@Override
	public void initialize(Rules constraintAnnotation) {
		System.out.println(constraintAnnotation);
	}

	@Override
	public boolean isValid(Map<String, String> value, ConstraintValidatorContext context) {
		// TODO Auto-generated method stub
		return false;
	}

}
